package com.happyclub.paul.service.impl;

import com.happyclub.paul.dao.LogiinHistoryRepostitory;
import com.happyclub.paul.service.ILogiinHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * @Auther: 魏泉琦
 * @Date: 2019/4/8 20:16
 * @Description: 登录历史
 */
@Service
public class LogiinHistoryServiceImpl implements ILogiinHistoryService {

    @Autowired
    private LogiinHistoryRepostitory logiinHistoryRepostitory;

    /**
     *@Description: 记录用户登录历史
     *@Author: 魏泉琦
     *@date: 2019/4/8
     */
    @Transactional
    @Override
    public Integer createLogiinHistory(String id, String userId, String loginType, String iemi, String ip, String loginAddress) {
        Integer cnt = logiinHistoryRepostitory.createLogiinHistory(id, userId, loginType, iemi, ip, loginAddress);
        return cnt;
    }
}
